<%@page contentType="text/html;charset=utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<html>
<head>
    <title>会员管理</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath }/assets/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath }/assets/css/bootstrap-maizi.css"/>
</head>
<body>
<%@include file="header.jsp" %>
<div class="container">
    <div class="row">
        <div class="col-md-2">
            <div class="list-group">
                <a href="${pageContext.request.contextPath }/adminMember" class="list-group-item active">会员列表</a>
                <a href="${pageContext.request.contextPath }/adminMember?method=doSearch"
                   class="list-group-item">查询会员</a>
            </div>
        </div>
        <div class="col-md-10">
            <div class="page-header">
                <h1>会员管理</h1>
            </div>
            <table class="table">
                <thead>
                <tr>
                    <th>会员账号</th>
                    <th>会员姓名</th>
                    <th>会员Email</th>
                    <th>会员手机号</th>
                    <th>Operations</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach items="${memberList }" var="member">
                    <tr>
                        <td class="hidden">${member.id }</td>
                        <td>${member.account }</td>
                        <td>${member.name }</td>
                        <td>${member.email }</td>
                        <td>${member.phone }</td>
                        <td>
                            <div role="presentation" class="dropdown">
                                <button class="dropdown-toggle btn btn-default" data-toggle="dropdown" href="#"
                                        role="button" aria-haspopup="true" aria-expanded="false">点击 <span
                                        class="caret"></span>
                                </button>
                                <ul class="dropdown-menu">
                                    <li>
                                        <a href="${pageContext.request.contextPath }/adminMember?method=details&id=${member.id}">查看详情</a>
                                    </li>
                                    <li>
                                        <a href="${pageContext.request.contextPath }/adminMember?method=findById&id=${member.id}">修改信息</a>
                                    </li>
                                    <li>
                                        <a href="${pageContext.request.contextPath }/adminMember?method=delete&id=${member.id}">删除会员</a>
                                    </li>
                                </ul>
                            </div>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>
</div>

<!--footer-->
<%@include file="footer.jsp" %>
<!--footer-->

<script src="${pageContext.request.contextPath }/assets/javascripts/jquery.min.js"></script>
<script src="${pageContext.request.contextPath }/assets/javascripts/bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath }/assets/javascripts/Chart.js"></script>
<script src="${pageContext.request.contextPath }/assets/javascripts/script.js"></script>
</body>
</html>
